<?php ob_start('ob_gzhandler') ?>
<!DOCTYPE html >
<html>
<head>
    <meta http-equiv="X-UA-Compatible" content="chrome=1">
    <!--
        /**
        * o------------------------------------------------------------------------------o
        * | This file is part of the RGraph package - you can learn more at:             |
        * |                                                                              |
        * |                          http://www.rgraph.net                               |
        * |                                                                              |
        * | This package is licensed under the RGraph license. For all kinds of business |
        * | purposes there is a small one-time licensing fee to pay and for non          |
        * | commercial  purposes it is free to use. You can read the full license here:  |
        * |                                                                              |
        * |                      http://www.rgraph.net/LICENSE.txt                       |
        * o------------------------------------------------------------------------------o
        */
    -->
    <title>RGraph: HTML5 canvas graph library - available CSS classes</title>
    
    <meta name="keywords" content="rgraph html5 canvas graph docs css classes" />
    <meta name="description" content="RGraph: HTML5 canvas graph software - Documentation about RGraph CSS classes" />

    <link rel="stylesheet" href="../css/website.css" type="text/css" media="screen" />
    <link rel="icon" type="image/png" href="/favicon.png">
    
    <style type="text/css">
        li {
            margin: 0 ! important;
        }
        
        li a {
            text-decoration: none;
        }
    </style>
</head>
<body>
    <div id="breadcrumb">
        <a href="../index.html">RGraph: HTML5 canvas graph library</a>
        >
        <a href="index.html">Documentation</a>
        >
        Available CSS classes
    </div>

    <h1>RGraph: HTML5 canvas graph library - Available CSS classes</h1>

    <script>
        if (RGraph.isIE8()) {
            document.write('<div style="background-color: #fee; border: 2px dashed red; padding: 5px"><b>Important</b><br /><br /> Internet Explorer does not natively support the HTML5 canvas tag yet, so if you want to see the graphs, you can either:<ul><li>Install <a href="http://code.google.com/chrome/chromeframe/">Google Chrome Frame</a></li><li>Use ExCanvas. This is provided in the RGraph Archive.</li><li>Use another browser entirely. Your choices are Firefox 3.5+, Chrome 2+, Safari 4+ or Opera 10.5+. </li></ul></div>');
        }
    </script>

    <p>
        This is information about the CSS classes available to you to allow you to customise the appearance of tooltips and
        context menus.
    </p>
    
    <ul>
        <li><a href="#RGraph_palette">RGraph_palette</a></li>
        <li><a href="#RGraph_tooltip">RGraph_tooltip</a></li>
        <li><a href="#RGraph_contextmenu">RGraph_contextmenu</a></li>
        <li><a href="#RGraph_contextmenu_item">RGraph_contextmenu_item</a></li>
        <li><a href="#RGraph_contextmenu_background">RGraph_contextmenu_background</a></li>
        <li><a href="#RGraph_zoom_window">RGraph_zoom_window</a></li>
        <li><a href="#RGraph_zoomed_canvas">RGraph_zoomed_canvas</a></li>
        <li><a href="#RGraph_zoomed_area">RGraph_zoomed_area</a></li>
        <li><a href="#ModalDialog_background">ModalDialog_background</a></li>
        <li><a href="#ModalDialog_dialog">ModalDialog_dialog</a></li>
        <li><a href="#ModalDialog_topbar">ModalDialog_topbar</a></li>
        <li><a href="#example">An example usage</a></li>
        <li><a href="#important">! important</a></li>
    </ul>
    
    <a name="RGraph_palette"></a>
    <h2>RGraph_palette</h2>
        <p>
            This controls the appearance of the mini-palette that can be used with annotating.
        </p>
    
    <a name="RGraph_tooltip"></a>
    <h2>RGraph_tooltip</h2>
        <p>
            This controls the appearance of tooltips. The default is to have them look like Windows tooltips.
        </p>

    <a name="RGraph_contextmenu"></a>
    <h2>RGraph_contextmenu</h2>
        <p>
            This controls how context menus appear. The default is similar to the look that Windows XP has.
        </p>

    <a name="RGraph_contextmenu_item"></a>
    <h2>RGraph_contextmenu_item</h2>
        <p>
            This controls how individual items on the context menu will appear, for example the default has roughly 25px padding-left
            to accomodate the left bar.
        </p>

    <a name="RGraph_contextmenu_background"></a>
    <h2>RGraph_contextmenu_background</h2>
        <p>
            This is the Windows XP style left vertical bar. By default this is light grey.
        </p>
    
    <a name="RGraph_zoom_window"></a>
    <h2>RGraph_zoom_window</h2>
        <p>
            This is the class to use if you want to customise the mini-zoom window.
        </p>
    
    <a name="RGraph_zoomed_canvas"></a>
    <h2>RGraph_zoomed_canvas</h2>
        <p>
            This is the class to use if you want to customise the full canvas zoom.
        </p>
    
    <a name="RGraph_zoomed_area"></a>
    <h2>RGraph_zoomed_area</h2>
        <p>
            This is the class to use if you want to customise the zoomed area.
        </p>
    
    <a name="ModalDialog_background"></a>
    <h2>ModalDialog_background</h2>
        <p>
            This class controls the dark semi-opaque background for the ModalDialog.
        </p>
    
    <a name="ModalDialog_dialog"></a>
    <h2>ModalDialog_dialog</h2>
        <p>
            This class controls the ModalDialog itself.
        </p>
    
    <a name="ModalDialog_topbar"></a>
    <h2>ModalDialog_topbar</h2>
        <p>
            This class controls the top bar for the ModalDialog. You could, for example, use the <i>display</i> CSS property to
            hide this if you don't want it.
        </p>
    
    <a name="example"></a>
    <h2>Example usage</h2>
        <p>
            Here is an example of using the CSS classes. At the time of writing, some of the items here were only implemented in newer
            web browsers:
        </p>

        <pre class="code">
&lt;style&gt;
    .RGraph_palette {
    }

    .RGraph_tooltip {
    }
    
    .RGraph_contextmenu {
    }
    
    .RGraph_contextmenu_background {
    }
    
    .RGraph_contextmenu_item {
    }
    
    .RGraph_zoom_window {
    }
    
    .RGraph_zoomed_canvas {
    }
    
    .RGraph_zoomed_area {
    }
    
    .ModalDialog_background {
    }
    
    .ModalDialog_dialog {
    }
    
    .ModalDialog_topbar {
    }
&lt;/style&gt;
</pre>

<a name="important"></a>
<h2>! important</h2>
    
    <p>
        If you're attempting to override default styles, then because of the ordering (ie the script is setting the style  AFTER
        your own CSS) you may need to use the "! important" modifier.
    </p>
</body>
</html>